@extends('admin.layout.index')

@section('content')
	<div class="col-lg-12">
	    <div class="card">
	        <div class="card-action">
	            管理员添加
	        </div>
	        <div class="card-content">
	            <form class="col s12" method="post" action="/admin/administrators/insert">
	            	{{ csrf_field() }}
	                <div class="row">    
	                    <div class="input-field col s6">
	                        <span style="color:#d1d1d1">管理员名称</span>
	                        <input disabled value="{{ $data['id'] + 1 }}" id="disabled" type="text" name="id">
	                        <input type="hidden" name="id" value="{{ $data['id'] + 1 }}">
	                    </div>
	                </div>
	                <div class="row">
	                    <div class="input-field col s6" id="pass_pass">
	                        <input id="password" type="password" class="validate" name="password" value="">
	                        <label for="password" class="">
	                            <span style="font-size:14px">密码</span>
	                        </label>
	                    </div>
	                    <div class="input-field col s6">
	                    	<label for="password" class="">
	                            <span></span>
	                        </label>
	                    </div>
	                </div>
	                 <div class="row">
	                    <div class="input-field col s6" id="pass_repass">
	                        <input id="password" type="password" class="validate" name="repassword" value="">
	                        <label for="password" class="">
	                            <span style="font-size:14px">确认密码</span>
	                        </label>
	                    </div>
	                    <div class="input-field col s6">
	                    	<label for="password" class="">
	                            <span></span>
	                        </label>
	                    </div>
	                </div>
	                <div class="row">
		                <div class="input-field col s6">　
		                   	<button type="submit" class="btn btn-info"> 注册</button>　
		                	<button type="reset" class="btn btn-danger"> 重置</button>
	                	</div>
	                </div>
	            </form>
	        </div>
	    </div>
	</div>
@endsection

@section('classified')
	<!-- 验证表单 密码是否符合要求 -->
	<script src="/adminassets/assets/js/password.js"></script>
@endsection